﻿package com.bizmlib.utils
{
	public function colorToRGBComponents(colorValue:Number):Object
	{
		//trace("colorToRGBComponents(" + arguments + ")");
		
		colorValue = isNaN(colorValue) ? 0 : colorValue;
		var returnData:Object = new Object();
		returnData.red = (colorValue & 0xff0000)>>16;
		returnData.green = (colorValue & 0x00ff00)>>8;
		returnData.blue = (colorValue & 0x0000ff);
		return returnData;
	}
}